package br.com.deployment.mobile.util;

import java.util.ArrayList;
import java.util.List;

import br.com.deployment.mobile.entities.Category;
import br.com.deployment.mobile.entities.Issues;
import br.com.deployment.mobile.entities.Options;
import br.com.deployment.mobile.entities.Questionnaire;
import br.com.deployment.mobile.enums.TypeIssues;

public class Teste {
	
	public static List<Questionnaire> getExample(){

		Questionnaire questionnaire = new Questionnaire();
		questionnaire.setCod(2L);
		questionnaire.setTitulo("Form Teste");
		
		
		Issues issues = new Issues();
		issues.setTitulo("Multipla Escolha ?");
		issues.setCategory(new Category());
		issues.setCod(2L);
		issues.setQuestionnaire(questionnaire);
		issues.setTypeIssues(TypeIssues.CHOICEMULTIPLE);
		
		Issues issues2 = new Issues();
		issues2.setTitulo("Escolha única?");
		issues2.setCategory(new Category());
		issues2.setCod(3L);
		issues2.setQuestionnaire(questionnaire);
		issues2.setTypeIssues(TypeIssues.CHOOSEONE);
		
		Issues issues3 = new Issues();
		issues3.setTitulo("Aberta ?");
		issues3.setCategory(new Category());
		issues3.setCod(3L);
		issues3.setQuestionnaire(questionnaire);
		issues3.setTypeIssues(TypeIssues.OPEN);
		
		
		
		Options option = new Options();
		option.setId(1L);
		option.setTitulo("Sim");
		
		Options option2 = new Options();
		option2.setId(2L);
		option2.setTitulo("Sim");
		
		List<Options> options = new ArrayList<Options>();
		options.add(option2);
		options.add(option);
		
		issues.setOptions(options);
		issues2.setOptions(options);
		
		List<Issues> listIssues = new ArrayList<Issues>();
		listIssues.add(issues);
		listIssues.add(issues2);
		listIssues.add(issues3);
		
		questionnaire.setIssueses(listIssues);
		
		ArrayList<Questionnaire> list = new ArrayList<Questionnaire>();
		list.add(questionnaire);
		
		return list;
	}

}
